package com.neuedu.service;

import com.neuedu.entity.Rule;
import com.neuedu.mapper.RuleRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RuleService {

    @Autowired
    private RuleRepository ruleRepository;
    public List<Rule> getALLRule(){
        return ruleRepository.getALLRule();
    }
}
